﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UC2.master" AutoEventWireup="true" CodeFile="UC2UploadPhoto.aspx.cs" Inherits="User_UC2UploadPhoto" EnableEventValidation="false" EnableViewState="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server">
<form id="webform" runat="server">
    <div class="userright">
        <div class="title">
            上传展厅图片</div>
        
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="maintop">
  <tr>
    <td height="38" align="left" class="usertitle">上传展厅Logo</td>
  </tr>
  <tr>
    <td><table width="96%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="28%" height="99" valign="bottom">
            <asp:Image ID="imgLogo" runat="server" CssClass="uploadimg" Width="160" Height="80" BorderWidth="1" ImageUrl="~/User/images/logo_sample.jpg" />
        </td>
        <td width="72%" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="30">
            <div id="uplogoimg" style="display:none;">
                <asp:FileUpload ID="fupLogo" runat="server" style="width:230px;" /> 
                <asp:Button ID="btnSaveUpLogo" runat="server" Text="确定" 
                    onclick="btnSaveUpLogo_Click" /> <input type="button" value="取消" onclick="switchUp('uplogoimg')" /></div>
            [<a href="javascript:switchUp('uplogoimg');">修改</a>] [<asp:LinkButton ID="lkbtnDelLogo"
                runat="server" onclick="lkbtnDelLogo_Click">删除</asp:LinkButton>]</td>
          </tr>
          <tr>
            <td height="30">上传160*80素数，显示效果最佳;</td>
          </tr>
          
        </table>          </td>
      </tr>

    </table></td>
  </tr>
</table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="maintop">
  <tr>
    <td height="38" align="left" class="usertitle">上传展厅广告牌</td>
  </tr>
  <tr>
    <td><table width="96%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="99" valign="bottom">
            <asp:Image ID="imgBanner" runat="server" CssClass="uploadimg" Width="680" Height="80" BorderWidth="1" ImageUrl="~/User/images/banner_sample.jpg" />
        </td>
      </tr>
      <tr>
        <td height="50" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:5px;">
          <tr>
            <td height="30">
            <div id="upbannerimg" style="display:none;">
                <asp:FileUpload ID="fupBanner" runat="server" style="width:300px;" /> 
                <asp:Button ID="btnSaveUpBanner" runat="server" Text="确定" 
                    onclick="btnSaveUpBanner_Click" /> <input type="button" value="取消" onclick="switchUp('upbannerimg')" /></div>
            [<a href="javascript:switchUp('upbannerimg');">修改</a>] [<asp:LinkButton ID="lkbtnDelBanner"
                runat="server" onclick="lkbtnDelBanner_Click">删除</asp:LinkButton>]
            </td>
          </tr>
          <tr>
            <td height="15" colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td height="15" colspan="2">上传990*80素数，显示效果最佳;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="maintop">
  <tr>
    <td height="38" align="left" class="usertitle">上传企业形象图</td>
  </tr>
  <tr>
    <td><table width="96%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="145" valign="bottom" width="175">
            <asp:Image ID="imgCompany" runat="server" CssClass="uploadimg" Width="175" Height="145" BorderWidth="1" ImageUrl="~/User/images/company_sample.jpg" />
        </td>
        <td height="50" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:5px;">
          <tr>
            <td height="30">
            <div id="upCompanyimg" style="display:none;">
                <asp:FileUpload ID="fupCompany" runat="server" style="width:300px;" /> 
                <asp:Button ID="btnSaveUpCompany" runat="server" Text="确定" 
                    onclick="btnSaveUpCompany_Click" /> <input type="button" value="取消" onclick="switchUp('upCompanyimg')" /></div>
            [<a href="javascript:switchUp('upCompanyimg');">修改</a>] [<asp:LinkButton ID="lkbtnDelCompany"
                runat="server" onclick="lkbtnDelCompany_Click">删除</asp:LinkButton>]
            </td>
          </tr>
          <tr>
            <td height="15" colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td height="15" colspan="2">上传175*145素数，显示效果最佳;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
    </div>
</form>
<script type="text/javascript">
    function switchUp(id) {
        var eml = document.getElementById(id);
        if (eml)
            eml.style.display == "none" ? eml.style.display = "block" : eml.style.display = "none";
    }
</script>
</asp:Content>

